<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 检测PHP环境
if (version_compare(PHP_VERSION, '5.3.0', '<')) die('require PHP > 5.3.0 !');

// 开发模式
define('APP_DEBUG', true);

//定义错误级别
if (APP_DEBUG) {
    error_reporting(E_ALL ^ E_NOTICE);
} else {
    ini_set('display_errors', 0);
    ini_set('log_errors', 0);
    error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
}
//定义应用目录
define('APP_PATH', '../Application/');
//定义视图目录
define('APP_VIEW_PATH', '../Application/Home/View');
//定义附件目录
define('UPLOAD_PATH', 'Uploads/');
//绑定访问模块
define('BIND_MODULE', 'Home');

// 引入ThinkPHP入口文件
require '../ThinkPHP/ThinkPHP.php';

// 亲^_^ 后面不需要任何代码了 就是如此简单